// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "LOGIC_0007",
        enableAutoSave: false,
        entityCodeName: "IBIZOrderDetail",
        keyPSAppDEField: "IBIZOrderDetailId",
        majorPSAppDEField: "IBIZOrderDetailName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group1: {
            caption: "订单明细基本信息",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        ibizordername: {
            caption: "订单名称",
            captionItemName: "",
            name: "ibizordername",
            codeName: "ibizordername",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZOrderName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'PICKER',
            },
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
            valueItemName: "ibizorderid",
        },
        ibizuniproductname: {
            caption: "产品（查询计数检查）",
            captionItemName: "",
            name: "ibizuniproductname",
            codeName: "ibizuniproductname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZUNIProductName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'PICKER',
            },
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
            formItemUpdate: {
                showBusyIndicator: "true",
                appDEMethod: "GetUnitAndPrice",
                updateDetails: [
                    "unit",
                    "unitprice",
                ],
            },
            valueItemName: "ibizuniproductid",
        },
        unit: {
            caption: "单位",
            captionItemName: "",
            name: "unit",
            codeName: "unit",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "Unit",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
        },
        unitprice: {
            caption: "单价X",
            captionItemName: "",
            name: "unitprice",
            codeName: "unitprice",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "UnitPrice",
            dataType: "7",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
        },
        quantity: {
            caption: "数量",
            captionItemName: "",
            name: "quantity",
            codeName: "quantity",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "Quantity",
            dataType: "9",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
            resetItemName: "IBIZuniproductname",
        },
        amount: {
            caption: "小计",
            captionItemName: "",
            name: "amount",
            codeName: "amount",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "Amount",
            dataType: "7",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
        },
    }
}
export const model = getModel();
